<?php
require_once('adodb/adodb-active-record.inc.php');
require_once('adodb/adodb.inc.php');

global $myGlobals_db;

$myGlobals_db = ADONewConnection('mysql'); # eg. 'mysql' or 'oci8'
$myGlobals_db->debug =false;
$myGlobals_db->Connect('localhost', 'root', '', 'e_viagens');
ADOdb_Active_Record::SetDatabaseAdapter($myGlobals_db);
?>
